package com.gsn.engine.gdx;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.ui.Image;

public class GsnRotationImage extends Image {
	public GsnRotationImage(TextureRegion region) {
		super(region);
	}
	
	public float cX, cY;
	
	public void setCenter(float cX, float cY){
		this.cX = cX;
		this.cY = cY;
		x = cX - width / 2;
		y = cY - height / 2;
	}
	
	public float getCenX(){
		return cX;
	}
	
	public float getCenY(){
		return cY;
	}
}
